﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.PopulationUI {
    import flash.events.*;
    import flash.utils.*;
    import Display.DialogUI.*;
    import org.aswing.*;
    import Display.*;
    import Display.aswingui.*;

    public class PopulationGateDialogView extends GenericDialogView {

        public function PopulationGateDialogView(_arg1:Dictionary, _arg2:String="", _arg3:String="", _arg4:int=0, _arg5:Function=null){
            super(_arg1, _arg2, _arg3, _arg4, _arg5);
        }
        override protected function createButtonPanel():JPanel{
            var _local1:JPanel = ASwingHelper.makeSoftBoxJPanel(SoftBoxLayout.CENTER);
            var _local2:JButton = new CustomButton(ZLoc.t("Dialogs", "ResourceInfoPop_Business_bold1").toUpperCase(), null, "GreenButtonUI");
            var _local3:JButton = new CustomButton(ZLoc.t("Main", "Cancel").toUpperCase(), null, "RedButtonUI");
            _local2.addEventListener(MouseEvent.MOUSE_UP, this.onOpenClick, false, 0, true);
            _local3.addEventListener(MouseEvent.MOUSE_UP, this.onCancelClick, false, 0, true);
            _local1.appendAll(_local2, _local3);
            return (_local1);
        }
        protected function onOpenClick(_arg1:MouseEvent):void{
            UI.displayCatalog("municipal");
            closeMe();
        }
        protected function onCancelClick(_arg1:MouseEvent):void{
            closeMe();
        }

    }
}//package Display.PopulationUI 
